<?php defined('IN_PHPCMS') or exit('No permission resources.'); ?><!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"get\" data=\"op=get&tag_md5=8f254826172def5fe0bd0a25f18fd05b&sql=select+name+from+sy_site+where+siteid%3D1\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">编辑</a>";}pc_base::load_sys_class("get_model", "model", 0);$get_db = new get_model();$r = $get_db->sql_query("select name from sy_site where siteid=1 LIMIT 20");while(($s = $get_db->fetch_next()) != false) {$a[] = $s;}$data = $a;unset($a);?>
	<?php $sitename=$data[0]?>
	<?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>
    <title>
	<?php if($setting['meta_title']) { ?>
		<?php echo $setting['meta_title'];?><?php if($page>1) { ?> - 第 <?php echo $page;?> 页<?php } ?> - <?php echo $sitename['name'];?>
	<?php } else { ?>
		<?php if($id) { ?>
			<?php if($customtitle) { ?>
				<?php echo $customtitle;?>
			<?php } ?>
			<?php echo $title;?> - <?php echo $sitename['name'];?>
		<?php } elseif (isset($SEO['title']) && !empty($SEO['title'])) { ?>
			<?php echo $SEO['title'];?> - {$sitename['name']
		<?php } else { ?>
			<?php echo $SEO['site_title'];?>
		<?php } ?>
		<?php if($page>1) { ?> - 第 <?php echo $page;?> 页<?php } ?>
	<?php } ?>
	</title>
	<meta name="keywords" content="<?php if($setting['meta_keywords']) { ?><?php echo $setting['meta_keywords'];?><?php } else { ?><?php if($seokey) { ?><?php echo $seokey;?><?php } else { ?><?php echo $SEO['keyword'];?><?php } ?><?php } ?>">
	<meta name="description" content="<?php if($setting['meta_description']) { ?><?php echo $setting['meta_description'];?><?php } else { ?><?php if($seodescription) { ?><?php echo $seodescription;?><?php } else { ?><?php echo $SEO['description'];?><?php } ?><?php } ?>">
	
    <link rel="stylesheet" href="<?php echo CSS_PATH;?>index/style.css" />
	
	
	<!-- 华样式 -->
	<?php if($catid) { ?>
	<link rel="stylesheet" href="/statics/css/my/style11.css">
    <link rel="stylesheet" href="/statics/css/my/reset.css">
    <link rel="stylesheet" href="/statics/css/my/grid.css">
    <link rel="stylesheet" href="/statics/css/my/classify_01.css">
    <link rel="stylesheet" type="text/css" href="/statics/css/my/reset.css" />
    <link rel="stylesheet" type="text/css" href="/statics/css/my/jquery.fancybox.css" />
    <link rel="stylesheet" type="text/css" href="/statics/css/my/products_detail_01.css" />
    <link rel="stylesheet" type="text/css" href="/statics/css/my/zoom.css" />
	<?php } ?>
</head>
<body>
 <!-- 联系方式-->
<?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"get\" data=\"op=get&tag_md5=53e1e8367018186b1ff832eeb8d7665f&sql=select+%2A+from+sy_contact&num=1\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">编辑</a>";}pc_base::load_sys_class("get_model", "model", 0);$get_db = new get_model();$r = $get_db->sql_query("select * from sy_contact LIMIT 1");while(($s = $get_db->fetch_next()) != false) {$a[] = $s;}$data = $a;unset($a);?>
<?php $contact=$data[0];?>
<?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>


 <!-- 公司简介-->
<?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"get\" data=\"op=get&tag_md5=a734ad966c9c464b42d6ffda757889b9&sql=select+%2A+from+sy_page&num=6\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">编辑</a>";}pc_base::load_sys_class("get_model", "model", 0);$get_db = new get_model();$r = $get_db->sql_query("select * from sy_page LIMIT 6");while(($s = $get_db->fetch_next()) != false) {$a[] = $s;}$data = $a;unset($a);?>
<?php $about=$data[0];?>
<?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>


  <!-- 顶部 -->
  <div id="ding">
    <div id="dingbu">
      <div class="left">
        您好，欢迎访问<?php echo $contact['title'];?>官网！
      </div>
      <div class="right">
        <div class="jiathis_style" style="float:right;">
          <div class="bdsharebuttonbox bdshare-button-style0-24" data-bd-bind="1527732376673">
            <span class="jiathis_txt" style="float:left;">分享到：</span>
            <a href="#" class="bds_more" data-cmd="more"></a>
            <a href="#" class="bds_qzone" data-cmd="qzone" title="分享到QQ空间"></a>
            <a href="#" class="bds_tsina" data-cmd="tsina" title="分享到新浪微博"></a>
            <a href="#" class="bds_tqq" data-cmd="tqq" title="分享到腾讯微博"></a>
            <a href="#" class="bds_renren" data-cmd="renren" title="分享到人人网"></a>
            <a href="#" class="bds_weixin" data-cmd="weixin" title="分享到微信"></a>
          </div>
          <script>
            window._bd_share_config = { "common": { "bdSnsKey": {}, "bdText": "", "bdMini": "2", "bdMiniList": false, "bdPic": "", "bdStyle": "0", "bdSize": "24" }, "share": {}, "selectShare": { "bdContainerClass": null, "bdSelectMiniList": ["qzone", "tsina", "tqq", "renren", "weixin"] } }; with (document) 0[(getElementsByTagName('head')[0] || body).appendChild(createElement('script')).src = 'http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion=' + ~(-new Date() / 36e5)];
          </script>
        </div>
      </div>
    </div>
  </div>



  <!-- 抬头 -->
  <div id="tai">
    <div id="taitou">
      <div class="left">
        <img src="/statics/images/index/logo.png" alt="" />
        <p>
          电子元器件一站式采购
          <span>近百家电子厂商授权代理，近万种电子元件现货供应</span>
        </p>
      </div>
      <div class="right">
        <img src="/statics/images/index/phone.jpg" alt="" />
        <p>
          全国免费热线：<br />
          <span><?php echo $contact['phone'];?></span>
        </p>
      </div>
    </div>
  </div>


  <!-- 导航 -->
  <div class="nav">
    <div class="nav-bar">
      <ul class="nav-ul">
        <li class="nav-li">
          <a href="/">网站首页</a>
        </li>
		<?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"content\" data=\"op=content&tag_md5=34f41a2f71fbaddd09c776baa0d17b3c&action=category&catid=0\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">编辑</a>";}$content_tag = pc_base::load_app_class("content_tag", "content");if (method_exists($content_tag, 'category')) {$data = $content_tag->category(array('catid'=>'0','limit'=>'20',));}?>
		<?php $n=1;if(is_array($data)) foreach($data AS $r) { ?>
			<li class="nav-li">
			  <a href="<?php echo $r['url'];?>"><?php echo $r['catname'];?></a>
			  <?php if($r[catid] == 2) { ?>
			  <ul class="content-list">
			  <?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"content\" data=\"op=content&tag_md5=90904756030c0c8dfebacce26304d2f2&action=category&catid=%24r%5Bcatid%5D&return=dat\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">编辑</a>";}$content_tag = pc_base::load_app_class("content_tag", "content");if (method_exists($content_tag, 'category')) {$dat = $content_tag->category(array('catid'=>$r[catid],'limit'=>'20',));}?>
			  <?php $n=1;if(is_array($dat)) foreach($dat AS $v) { ?>
				<li class="content">
				  <h3><a href="<?php echo $v['url'];?>"><?php echo $v['catname'];?> ></a></h3>
				  <ul>
					<?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"content\" data=\"op=content&tag_md5=7dd05d0d9a5e168e30a589a6a0170e4f&action=lists&catid=%24v%5Bcatid%5D&num=5&return=da\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">编辑</a>";}$content_tag = pc_base::load_app_class("content_tag", "content");if (method_exists($content_tag, 'lists')) {$da = $content_tag->lists(array('catid'=>$v[catid],'limit'=>'5',));}?>
					<?php $n=1;if(is_array($da)) foreach($da AS $c) { ?>
					<li><a href="<?php echo $c['url'];?>"><?php echo $c['title'];?></a></li>
					<?php $n++;}unset($n); ?>
					<?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>
				  </ul>
				</li>
			  <?php $n++;}unset($n); ?>
			  <?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>
			  </ul>
			  <?php } ?>
			</li>
		<?php $n++;}unset($n); ?>
		<?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>
      </ul>
    </div>
  </div>

  <!--幻灯片-->
  <!-- start-->
  <script type="text/javascript" src="<?php echo JS_PATH;?>index/jquery.min.js"></script>
  <script type="text/javascript" src="<?php echo JS_PATH;?>index/jq.focus.js"></script>
  <div id="flash_bg">
  <?php if($catid) { ?>
					<?php if($top_parentid) { ?>
						<li>
							<a href="<?php echo $CATEGORYS[$top_parentid]['url'];?>">
								<img src="<?php echo $CATEGORYS[$top_parentid]['image'];?>" style="width:100%;height:auto;" />
							</a>
						</li>
					<?php } elseif ($parentid) { ?>
						<li>
							<a href="<?php echo $CATEGORYS[$parentid]['url'];?>">
								<img src="<?php echo $CATEGORYS[$parentid]['image'];?>" style="width:100%;height:auto;" />
							</a>
						</li>
					<?php } else { ?>
						<li>
							<a href="<?php echo $CATEGORYS[$catid]['url'];?>">
								<img src="<?php echo $CATEGORYS[$catid]['image'];?>" style="width:100%;height:auto;" />
							</a>
						</li>
					<?php } ?>
				<?php } else { ?>
				<div class="focus">
				  <div class="jqfocus">
					<ul>
						<?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"get\" data=\"op=get&tag_md5=fb81a9c457b0207cba8ef10a265fa0b0&sql=select+src%2Curl+from+sy_banner+where+posid%3D0+order+by+listid+asc\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">编辑</a>";}pc_base::load_sys_class("get_model", "model", 0);$get_db = new get_model();$r = $get_db->sql_query("select src,url from sy_banner where posid=0 order by listid asc LIMIT 20");while(($s = $get_db->fetch_next()) != false) {$a[] = $s;}$data = $a;unset($a);?>
							<?php $n=1;if(is_array($data)) foreach($data AS $r) { ?>
							<li><a href=""
						  style="background:url(<?php echo $r['src'];?>) center no-repeat; width:100%; height:600px; display:block;"></a>
					  </li>
							<?php $n++;}unset($n); ?>
							<?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>
					  
					</ul>
				  </div>
				</div>
				<?php } ?>
    
  </div>


<div class="clear"></div>